Fix FTBFS on power "not a constant expression"
authorDebian Games Team <pkg-games-devel@lists.alioth.debian.org>
Mon, 29 Sep 2025 17:28:06 +0000 (19:28 +0200)
committerJordi Mallach <jordi@debian.org>
Mon, 29 Sep 2025 17:28:06 +0000 (19:28 +0200)
commitca491bdd0d836c946fc353fdbdbfab8dace3ac9b
tree9d75cb1cd25097b357e5d932f92bd70cb1691efc
parent80616cf26c4183a4e9013e8b11e7cb8648febbf3
Fix FTBFS on power "not a constant expression"

There are some explanation upstream :
https://github.com/mamedev/mame/issues/3157

There are some explanation upstream :
https://github.com/mamedev/mame/issues/3157
and this probably due to the fact that IBM 128bit long double format
is not constant folded.
I slighlty rewrote ""_kHz_XTAL(long double clock) and ""_MHz_XTAL(long double clock)
the way ""_kHz_XTAL(unsigned long long clock) and ""_MHz_XTAL(unsigned long long clock)
which makes the compiler happy.
Also including an upstream change about rounding to get same results as on x86
: https://github.com/mamedev/mame/pull/5164
Author: Frédéric Bonnard <frediz@debian.org>

Gbp-Pq: Name fix-922619.patch
src/emu/xtal.h